<div class="layui-body">
<div class="aright">
<button id="danger" class="layui-btn layui-btn-lg">停止自动导量</button>
<div class="layui-tab" lay-filter="demo" style="margin: 20px 30px 20px 20px;">
  <ul class="layui-tab-title">
    <li class="layui-this">基本设置</li>
  </ul>
  <div class="layui-tab-content">
    <div class="layui-tab-item layui-show">
<!-- <fieldset class="layui-elem-field">
  <legend>注释-说明</legend>
  <div class="layui-field-box">
    1.手动模式
    <hr class="layui-bg-blue">
    2.持续时间+浏览量
    <hr class="layui-bg-blue">
    3.开始时间+浏览量 设置【开始时间】【导流域名数量】【导流最小值】【导流最大值】是个参数，最小值是被导域名的结束条件，最大值和时间是开始条件
    <hr class="layui-bg-blue">
    4.持续时间+浏览量（导流多个域名）设置【持续时间】【导流域名数量】【导流最小值】三个参数，达到最小值开始导流
  </div>
</fieldset> -->
<form class="layui-form bform" method="post" action="{:url('man/config/video')}" enctype="multipart/form-data">
  <!-- <div class="layui-form-item">
    <label class="layui-form-label">是否开启导流：</label>
      <div class="layui-input-inline">
        <select name="dump_whether">
        {if condition="$config.dump_whether eq 0"}
          <option selected value="0">关闭</option>
          {else /}
          <option value="0">关闭</option>
          {/if}
          {if condition="$config.dump_whether eq 1"}
          <option selected value="1">手动</option>
          {else /}
          <option value="1">手动</option>
          {/if}
          {if condition="$config.dump_whether eq 2"}
          <option selected value="2">【持续时间+浏览量】自动</option>
          {else /}
          <option value="2">【持续时间+浏览量】自动</option>
          {/if}
          {if condition="$config.dump_whether eq 3"}
          <option selected value="3">【开始时间+浏览量】自动</option>
          {else /}
          <option value="3">【开始时间+浏览量】自动</option>
          {/if}
          {if condition="$config.dump_whether eq 4"}
          <option selected value="4">【持续时间+浏览量】自动-多个域名</option>
          {else /}
          <option value="4">【持续时间+浏览量】自动-多个域名</option>
          {/if}
       </select>
      </div>
      
  </div> -->
  <!-- <div class="layui-form-item">
    <label class="layui-form-label">是否开启随机二级目录：</label>
      <div class="layui-input-inline">
        <select name="dump_change_dir">
        {if condition="$config.dump_change_dir eq 0"}
          <option selected value="0">关闭</option>
          {else /}
          <option value="0">关闭</option>
          {/if}
          {if condition="$config.dump_change_dir eq 1"}
          <option selected value="1">开启</option>
          {else /}
          <option value="1">开启</option>
          {/if}
       </select>
      </div>
      
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">【手动】开始时间：</label>
    <div class="layui-input-block">
      <input type="text" name="dump_start_time" value="{$config.dump_start_time}" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">【手动】结束时间：</label>
    <div class="layui-input-block">
     <input type="text" name="dump_end_time" value="{$config.dump_end_time}" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">【浏览量+时间】持续时间：</label>
    <div class="layui-input-block">
     <input type="text" name="dump_dura_time" value="{$config.dump_dura_time}" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">【浏览量+时间】导流域名数量：</label>
    <div class="layui-input-block">
     <input type="text" name="dump_cou" value="{$config.dump_cou}" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">自动导流最小值：</label>
    <div class="layui-input-block">
      <input type="text" name="dump_min_num" value="{$config.dump_min_num}" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>
<div class="layui-form-item">
    <label class="layui-form-label">自动导流最大值：</label>
    <div class="layui-input-block">
      <input type="text" name="dump_max_num" value="{$config.dump_max_num}" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">【手动】导流的域名：</label>
    <div class="layui-input-block">
      <input type="text" name="dump_jumps" value="{$config.dump_jumps}" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">【手动】导流到达域名：</label>
    <div class="layui-input-block">
      <input type="text" name="dump_arrives" value="{$config.dump_arrives}" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">拦截域名导流：</label>
    <div class="layui-input-block">
      <input type="text" name="dump_red" value="{$config.dump_red}" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>
 -->
  <div class="layui-form-item">
    <label class="layui-form-label">【视频】标题：</label>
    <div class="layui-input-block">
      <input type="text" name="vtitle" value="{$config.vtitle}" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">【视频】VID：</label>
    <div class="layui-input-block">
      <input type="text" name="vid" value="{$config.vid}" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">【视频】分享时间：</label>
    <div class="layui-input-block">
      <input type="text" name="delay_time" value="{$config.delay_time}" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">【视频】公众号对接超时时间：</label>
    <div class="layui-input-block">
      <input type="text" name="dump_vendor_timeout" value="{$config.dump_vendor_timeout}" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">【视频】公众号上一次对接时间：</label>
    <div class="layui-input-block">
      <input type="text" name="dump_vendor_time" value="{$config.dump_vendor_time}" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <div class="layui-input-block">
	  <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
      <button class="layui-btn layui-btn-primary" onclick="history.go(-1)">返回</button>
    </div>
  </div>

</form>
	
	</div>
     
	<script>
  layui.use('form',function(){
     var form = layui.form();
  })

$(function(){
  $("#danger").click(function(){
     layer.confirm('真的要停止自动导量吗？', function(index){
       $.get("{:url('man/config/stopAutoJump')}",{},function(data){
          layer.msg(data);
       })
     });
  });
});
  
  </script>
	
	</div>
  </div>
</div>
